<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="<c:url value="/styles/ad/style.css"/>" rel="stylesheet" type="text/css" />
<script language="JavaScript" type="text/javascript" src="<c:url value="/scripts/jquery-1.4.4.min.js"/>"></script>
<script language="JavaScript" type="text/javascript">
function saveCpxl(){
	var name = jQuery.trim($("#cpxlName").val());
	if(name == ""){
		alert("小类名称不能为空");
		return false;
	}else{
		return true;
	}
}

</script>
<style type="text/css">
<!--
.atten {font-size:12px;font-weight:normal;color:#F00;}
-->
</style>
<title>增加小类</title>
</head>
<body class="ContentBody">
  <form action="addCdxlComm" method="post">
  <input type="hidden" value="${cpdl.dlcode}" name="dlcode"/>
<div class="MainDiv">
<table width="99%" border="0" cellpadding="0" cellspacing="0" class="CContent">
  <tr>
      <th class="tablestyle_title" >添加商品小类</th>
  </tr>
  <tr>
    <td class="CPanel">
		
		<table border="0" cellpadding="0" cellspacing="0" style="width:100%">
		<tr><td align="left">
		<input type="submit" name="Submit" value="保存" class="button" onclick="return saveCpxl();"/>　
			
			<input type="button" name="Submit2" value="返回" class="button" onclick="window.history.go(-1);"/>
		</td></tr>
		<TR>
			<TD width="100%">
				<fieldset style="height:100%;">
				<legend>添加商品小类</legend>
					  <table border="0" cellpadding="2" cellspacing="1" style="width:100%">
					  
					  
					  <tr>
					    <td width="15%" align="right">小类名称:</td>
					    <td width="35%"><input type="text" id="cpxlName" name="cpxlName" /></td>
					    <td width="15%" align="right">&nbsp;</td>
					    <td width="35%">&nbsp;</td>
					  </tr>
					  <tr>
					    <td width="15%" align="right">商品大类:</td>
					    <td colspan="3">${cpdl.dlname}</td>
					    </tr>
					  </table>
			  <br />
				</fieldset>			</TD>
		</TR>
		</TABLE>
	
	
	 </td>
  </tr>
		<TR>
			<TD colspan="2" align="center" height="50px">
			<input type="submit" name="Submit" value="保存" class="button" onclick="return saveCpxl();"/>　
			
			<input type="button" name="Submit2" value="返回" class="button" onclick="window.history.go(-1);"/></TD>
		</TR>
		</TABLE>
	 </td>
  </tr>
  </table>
</div>
</form>
</body>
</html>